import request from '@/utils/request'

// 查询学校列表
export function listT_school(query) {
    return request({
        url: '/demo/t_school/list',
        method: 'get',
        params: query
    })
}
// 查询学校详细
export function getT_school(id) {
    return request({
        url: '/demo/t_school/' +id,
        method: 'get'
    })
}

// 新增学校
export function addT_school(data) {
    return request({
        url: '/demo/t_school',
        method: 'post',
        data: data
    })
}

// 修改学校
export function updateT_school(data) {
    return request({
        url: '/demo/t_school',
        method: 'put',
        data: data
    })
}

// 删除学校
export function delT_school(ids) {
    return request({
        url: '/demo/t_school/' + ids,
        method: 'delete'
    })
}
